import request from '@/utils/request'
import dart from 'highlight.js/lib/languages/dart'

export function listCollector(collector){
  return request({
    url:'/basedata/collector/list',
    method: 'get',
    params: collector
  })
}

export function addCollector(collector){
  return request({
    url:'/basedata/collector',
    method: 'post',
    data: collector
  })
}

export function editCollector(collector){
  return request({
    url:'/basedata/collector',
    method: 'put',
    data: collector
  })
}

export function removeCollector(id){
  return request({
    url:'/basedata/collector/'+id,
    method: 'delete',
  })
}

export function getCollectorByConcentratorId(id){
  return request({
    url:'/basedata/collector/getCollectorByConcentratorId/'+id,
    method: 'get',
  })
}

// 采集器模版下载
